// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** clearSysLogininfo POST /api/sysOperLog/clear */
export async function clearSysLogininfoUsingPost1(options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/sysOperLog/clear', {
    method: 'POST',
    ...(options || {}),
  });
}

/** deleteSysOperLog POST /api/sysOperLog/delete */
export async function deleteSysOperLogUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/sysOperLog/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getSysOperLogById GET /api/sysOperLog/get */
export async function getSysOperLogByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSysOperLogByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseSysOperLog_>('/api/sysOperLog/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getSysOperLogVOById GET /api/sysOperLog/get/vo */
export async function getSysOperLogVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getSysOperLogVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseSysOperLogVO_>('/api/sysOperLog/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listSysOperLogByPage POST /api/sysOperLog/list/page */
export async function listSysOperLogByPageUsingPost(
  body: API.SysOperLogQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageSysOperLog_>('/api/sysOperLog/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listSysOperLogVOByPage POST /api/sysOperLog/list/page/vo */
export async function listSysOperLogVoByPageUsingPost(
  body: API.SysOperLogQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageSysOperLogVO_>('/api/sysOperLog/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
